import Base from "./base";

const api = new Base();

export const login = (data: LoginForm) =>
  api.postForm("/platLogin/login", data);
export const logout = () => api.post("/platLogin/logout")
export const getUserList = (data: UserFilter): Promise<PageResult<UserItem>> =>
  api.get("/sys/user/list", data);

export const updateMaxAlbum = (
  userId: number,
  albumAmount: number
): Promise<PageResult<UserItem>> =>
  api.patch(`/sys/user/albumAmount/${userId}/${albumAmount}`);
